package com.example.livereplay.exception;

public enum SysBusinessCode {
    USERNAME_EXIST_ERROR(200003, "用户名已存在"),
    ID_LIST_EMPTY_ERROR(300001, "id列表不能为空"),
    USERNAME_EMPTY_ERROR(300002, "id列表不能为空"),
    PASSWORD_EMPTY_ERROR(300003, "密码不能为空"),
    ID_EMPTY_ERROR(300004, "id不能为空"),
    OAUTH_CLIENT_CLIENT_ID_EMPTY_ERROR(300029, "clientId不能为空"),
    OAUTH_CLIENT_SECRET_EMPTY_ERROR(300030, "clientSecret不能为空"),
    OAUTH_CLIENT_NAME_EMPTY_ERROR(300032, "clientName不能为空"),
    OAUTH_CLIENT_AUTHORIZED_GRANT_TYPES_EMPTY_ERROR(300031, "authorizedGrantTypes不能为空"),
    PRIVATE_KEY_EMPTY_ERROR(300038, "私钥不能为空"),
    PUBLIC_KEY_EMPTY_ERROR(300039, "私钥不能为空");


    private Integer code;
    private String msg;

    SysBusinessCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
